/* eslint-disable */
// 该文件由 OneAPI 自动生成，请勿手动修改！
import {request} from '@umijs/max';
import {headerConfig, responseIntercept} from "@/services/request";
import {getImBaseUrl} from "@/constants";

/**
 *
 * @param sendTime
 * @param groupID
 * @param sessionType 1 用户消息 2群组消息
 * @param pagination
 */
export async function msgSearchMsg(
    sendTime:string,
    groupID:string,
    sessionType: number,
    pagination?: {
        pageNumber: number,
        showNumber: number,
    }
) {
    return request<API.Result_>(`${getImBaseUrl()}/msg/search_msg`, {
        method: 'POST',
        data: {
            sendTime ,
            groupID ,
            sessionType ,
            pagination,
            recvID:groupID
        },
        headers: headerConfig(),
        responseInterceptors: [responseIntercept],
    });
}
